home *** CD-ROM | disk | FTP | other *** search
- package Local.Game.Thing
- {
- import Local.Audio.*;
- import Local.Game.World.*;
- import Local.Game.World.Map.*;
- import Local.Game.World.Map.Cell.*;
- import Local.Math.*;
- import STC9.System.*;
- import flash.display.*;
- import flash.events.*;
- import flash.geom.*;
-
- public class CStrikeClusterBomb extends CStrike
- {
-
-
- public var mWaitCount:int;
-
- public var mTargetPosition:CPosition;
-
- public function CStrikeClusterBomb(param1:*)
- {
- if(true)
- {
- super(new CPosition());
- if(true)
- {
- mType = "strikeclusterbomb";
- if(true)
- {
- Process = Process_Normal;
- if(true)
- {
- mTargetPosition = (param1 is CPosition ? param1 : param1.mPosition).Clone();
- if(true)
- {
- mWaitCount = SECONDS * 2;
- }
- AddSound("jet",Jet_By,1000);
- }
- GetSound(PlaySound("jet",{
- "mVolume":1,
- "mPan":0
- })).AddFilter(new CSoundFilter([{
- "pan":-0.5,
- "time":0
- },{
- "pan":0,
- "time":2000
- },{
- "pan":1,
- "time":11000
- }]));
- }
- IncrementFired();
- }
- mShowOnMap = true;
- }
- }
-
- public function Process_Normal() : void
- {
- var _loc1_:*;
- §§push((_loc1_ = §§findproperty(mWaitCount)).mWaitCount);
- if(true)
- {
- var _loc2_:*;
- §§push(_loc2_ = §§pop() - 1);
- if(true)
- {
- _loc1_.mWaitCount = _loc2_;
- }
- }
- if(§§pop() < 0)
- {
- DispatchDispose();
- AddThing(new CShotClusterBomb(mTargetPosition));
- }
- Process_Children();
- }
- }
- }
-